@extends('default.mobile.layouts.indexPublic')
@section('title','企业注册')
{{--首页css--}}
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/mobile/index/register_login.css')}}">
    @endsection
    {{--头部标签--}}
    @section('tag','企业注册')

    {{--主体内容--}}
    @section('content')
    <!-- E 头部 -->
    <div class="main">
        {{--普通注册--}}
        <div class="register_login comReg">
            <form  method="post" onsubmit="return checkCompanyReg('#regForm')" name="regForm" id="regForm">
                {{csrf_field()}}
                <input type="hidden" name="unionid" id="unionid" value="{{ session('unionid') }}">
                <input type="hidden" name="openid" id="openid" value="{{ session('openid') }}">
                <input type="hidden" name="category" id="category" value="{{ session('category') }}">
                <ul>
                    <li><span  class="cominfo">公司信息</span></li>
                    <li><i class="icon_rl01"></i><input type="text" name="company_name" id="company_name" autocomplete="off"  placeholder="请输入公司名称"></li>
                    <li><i class="icon_rl02"></i><input type="text" name="contacts" id="contacts"  autocomplete="off" placeholder="请输入联系人"></li>
                    <li><i class="icon_rl03"></i><input type="text" name="email" id="email"  autocomplete="off" placeholder="请输入常用邮箱"></li>
                    <li><i class="icon_rl05"></i><input type="text" name="mobile" id="mobile"  autocomplete="off" placeholder="请输入手机号码"></li>
                    <li><i class="icon_rl08"></i><input name="mobCode" id="mobCode" type="text" placeholder="请输入验证码" autocomplete="off"  class="inp02">
                        <input name="mobcode" id="mobcode" type="button" onclick="getMobileCode($(this),$('#mobile'))" class="code" value="获取验证码">
                    <li><i class="icon_rl04"></i><input type="text"  name="phone" id="phone"  autocomplete="off" placeholder="请输入电话(如:0576-85768888)"></li>
                    <li  class="other"><span>注：固定电话与手机号码必须填写一项</span></li>
                    <li><span  class="cominfo">账户信息</span></li>
                    <li><i class="icon_rl06"></i><input type="text" name="username" id="username"  autocomplete="off" placeholder="请输入用户名"></li>
                    <li><i class="icon_rl07"></i><input type="password" name="password" id="password"   placeholder="请输入密码"></li>
                    <li><i class="icon_rl07"></i><input type="password" name="password_confirmation"  id="password_confirmation"  placeholder="请确认密码"></li>
                </ul>
                <div class="forget">
                    <span>
                        <input name="remember" type="checkbox" class="agree" id="remember" checked>
                        <label for="remember">同意并注册</label>
                    </span>
                </div>
                <div class="sub"><input type="submit" value="企业会员注册"></div>
                <div class="noPerson"><p>已有账号? <a href="{{url('mobile/company/login')}}">马上登录</a></p></div>
            </form>
        </div>
    </div>
    {{--尾部--}}
    @include('default.mobile.layouts.footer')
@endsection

@section('footerjs')
    @parent

    <script> var _token = '{{csrf_token()}}';
        var mobCodeUrl = "{{ url('company/ajax_mob_code') }}";
        var imgCode = "{{captcha_src('code')}}" + Math.random();
    </script>
    <script type="text/javascript" src="{{asset('/default/js/mobile/company/register.js')}}"></script>
@endsection